import request from '@/utils/request'

//获取企业人员列表
export function getCompanyPersonTable(data) {
	return request({
		url: '/pc/system/app_user/5_page_find_all',
		method: 'post',
		json:data
	})
}

//获取企业列表
export function getCompanyTable(data) {
	return request({
		url: '/pc/system/app_enterprise/5_page_find_all',
		method: 'post',
		json:data
	})
}

//获取区域权限
export function getOrganizationDistrict(data) {
	return request({
		url:"/pc/system/pc_organization/6_get_region_list_by_parent_id",
		method:'post',
		formData:data
	})
}

//新增企业员工
export function newAddEnterPrisePerson(data) {
	return request({
		url: '/pc/system/app_user/1_insert',
		method: 'post',
		json:data
	})
}

//编辑企业员工
export function editeEnterPrisePerson(data) {
	return request({
		url: '/pc/system/app_user/2_update',
		method: 'post',
		json:data
	})
}

//根据ID查询人员基本信息
export function getPersonDetailByID(data) {
	return request({
		url: '/pc/system/app_user/4_find_by_id',
		method: 'post',
		formData:data
	})
}

//根据ID删除企业人员
export function getDeletePersonByID(data) {
	return request({
		url: '/pc/system/app_user/3_delete_by_id',
		method: 'post',
		formData:data
	})
}

//根据Ids批量删除企业人员
export function getBatchDeletePersonByID(data) {
	return request({
		url: '/pc/system/app_user/3_delete_by_ids',
		method: 'post',
		formData:data
	})
}